package com.ruoyi.property.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抄表信息对象 pro_meterReading
 * 
 * @author sux
 * @date 2021-07-01
 */
public class MeterReading extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 抄表ID */
    private Long meterId;

    /** 表类型（0电表 1水表） */
    @Excel(name = "表类型", readConverterExp = "0=电表,1=水表")
    private String meterType;

    /** 表对象名称 */
    @Excel(name = "表对象名称")
    private String meterName;

    /** 上期度数 */
    @Excel(name = "上期度数")
    private BigDecimal priorDegrees;

    /** 本期度数 */
    @Excel(name = "本期度数")
    private BigDecimal curDegrees;

    /** 上期抄表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上期抄表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date priorTime;

    /** 本期抄表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本期抄表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date curTime;

    /** 表状态（0正常 1停用） */
    @Excel(name = "表状态", readConverterExp = "0=正常,1=停用")
    private String meterStatus;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setMeterId(Long meterId) 
    {
        this.meterId = meterId;
    }

    public Long getMeterId() 
    {
        return meterId;
    }
    public void setMeterType(String meterType) 
    {
        this.meterType = meterType;
    }

    public String getMeterType() 
    {
        return meterType;
    }
    public void setMeterName(String meterName) 
    {
        this.meterName = meterName;
    }

    public String getMeterName() 
    {
        return meterName;
    }
    public void setPriorDegrees(BigDecimal priorDegrees) 
    {
        this.priorDegrees = priorDegrees;
    }

    public BigDecimal getPriorDegrees() 
    {
        return priorDegrees;
    }
    public void setCurDegrees(BigDecimal curDegrees) 
    {
        this.curDegrees = curDegrees;
    }

    public BigDecimal getCurDegrees() 
    {
        return curDegrees;
    }
    public void setPriorTime(Date priorTime) 
    {
        this.priorTime = priorTime;
    }

    public Date getPriorTime() 
    {
        return priorTime;
    }
    public void setCurTime(Date curTime) 
    {
        this.curTime = curTime;
    }

    public Date getCurTime() 
    {
        return curTime;
    }
    public void setMeterStatus(String meterStatus) 
    {
        this.meterStatus = meterStatus;
    }

    public String getMeterStatus() 
    {
        return meterStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("meterId", getMeterId())
            .append("meterType", getMeterType())
            .append("meterName", getMeterName())
            .append("priorDegrees", getPriorDegrees())
            .append("curDegrees", getCurDegrees())
            .append("priorTime", getPriorTime())
            .append("curTime", getCurTime())
            .append("meterStatus", getMeterStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
